﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoMVC.Business
{
    public interface IRepository<T> where T: class, new()
    {
        T GetByKey(object key);
        IList<T> GetAll(int? currentPage, int pageSize, ref int totalRecord);
        bool Insert(T entity);
        bool Update(T entity);
        bool Delete(T entity);
    }
}
